import { ElNotification } from 'element-plus'

class Base{
	baseUrl:string;
	res={
		'code':300,
		'msg':'网络出错,请重试'
	}
	constructor(_url:string){
		this.baseUrl = _url
	}
	//不单独处理网络问题
	NetErr(msg:string=this.res.msg){
		ElNotification({
			title: 'Error',
			message: msg,
			type: 'error',
		})
	}
}

export default Base